package com.ld.admin.model.system;

import java.io.Serializable;
import java.util.Date;

import com.ld.shieldsb.annotation.field.link.Link;
import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;
import com.ld.shieldsb.common.web.model.SysUser;

import lombok.Data;

/**
 * 
 * 用户角色(sys_user_roles)
 * 
 * @ClassName SysUserRolesModel
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年03月29日 09:10:56
 *
 */
@Model(name = "用户角色")
@TableName("sys_user_roles")
@Data
public class SysUserRolesModel implements Serializable {
    private static final long serialVersionUID = 676600409777636802L;

    private Long id;
    /*角色id*/
    private Long roleId;
    /*用户id*/
    private Long userId;
    /*创建者id*/
    private Long createBy;
    /*创建人姓名*/
    private String createName;
    /*创建时间*/
    private Date createTime;

    @Link(field = "userId")
    private SysUser sysUser;
}